package com.shenjinzheng.sso.api;


import com.shenjinzheng.sso.entity.Merchant;
import com.shenjinzheng.sso.service.MerchantService;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/merchantApi")
public class MerchantApi {

    @Resource
    private MerchantService merchantService;

    @PostMapping("")
    public Boolean save(@RequestBody Merchant merchant) {
        return merchantService.save(merchant);
    }
}
